package com.ruoyi.system.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "应用分类创建参数")
public class TbAppCatalogCreateDTO {


    // 自动解析字段
    @Schema(description = "应用包名")
    private String packageName;
    @Schema(description = "版本号")
    private String versionCode;

    @Schema(description = "版本编号")
    private  String versionnumber;
    @Schema(description = "最低系统版本要求")
    private String minSystemVersion;
    @Schema(description = "开发商")
    private String devSupplier;

    // 图标相关
    @Schema(description = "图标")
    private byte[] iconBytes;
    @Schema(description = "图标名称")
    private String iconName;

    /**
     * 手动输入数据
     */
    @Schema(description = "应用名称")
    private String appName;

    @Schema(description = "应用/包类型")
    private Integer packageType;

    @Schema(description = "应用描述")
    private String appDesc;

    @Schema(description = "版本描述")
    private String versionDesc;

    @Schema(description = "备案号")
    private String recordNum;

    @Schema(description = "应用包hash  MD5")
    private String packageHash;



    @Schema(description = "原始字节大小（供后端 存储/校验）  单位 MB")
    private double fileSizeMB;
    @Schema(description = " 格式化后的 MB 字符串（供前端显示）")
    private String formattedSize;



    @Schema(description = "应用包URL")
    private String packageUrl;
    @Schema(description = "SDK要求")
    private  String sdkRequirement;

    @Schema(description = "图标URL")
    private String iconUrl;

    @Schema(description = "备注")
    private String remark;

}
